package task2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-06-14
 * Time:14:19
 */
public class ChowDog extends Dog{
    private String origin;
    private int age;

    public ChowDog(double height, double weight, String origin, int age) {
        super(height, weight);
        this.origin = origin;
        this.age = age;
    }

    @Override
    public void showMessage() {
        super.showMessage();
        System.out.println("产地："+this.origin+";年龄："+this.age+"岁。");
    }
}
